package com.yunlongcoding.cahuomarketing.param;

import com.yunlongcoding.cahuomarketing.utils.CommonPayUtils;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by IntelliJ IDEA.
 *
 * 会员充值小程序前端传参
 *
 * @author 王云龙
 * @version 1.0
 * @date 7/31/2018  11:00 AM
 */
public class RechargeParam implements Serializable {

    private static final long serialVersionUID = 5047605464747341021L;


    // 会员id
    private Long memberId ;

    // 会员openId
    private String openId ;

    // 充值金额
    private String rechargeAmount ;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getRechargeAmount() {
        return rechargeAmount;
    }

    public BigDecimal getBDRechargeAmount() {
        return CommonPayUtils.conversionString2BigDecimal(rechargeAmount) ;
    }

    public void setRechargeAmount(String rechargeAmount) {
        this.rechargeAmount = rechargeAmount;
    }

    @Override
    public String toString() {
        return "RechargeParam{" +
                "memberId=" + memberId +
                ", openId='" + openId + '\'' +
                ", rechargeAmount='" + rechargeAmount + '\'' +
                '}';
    }
}
